package com.sunyard.manage.service.impl;

import com.sunyard.dal.entity.City;
import com.sunyard.dal.entity.District;
import com.sunyard.dal.entity.Province;
import com.sunyard.dal.mapper.CityMapper;
import com.sunyard.manage.service.CityService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * description: CityServiceImpl
 * date: 2020/1/10 10:15
 * author: JIYU
 */
@Service
@Slf4j
public class CityServiceImpl implements CityService {

    @Autowired
    private CityMapper cityMapper;

    @Override
    public List<Province> threeLinkGetProv() {
        return cityMapper.threeLinkGetProv();
    }

    @Override
    public List<City> threeLinkGetCity(String parentCode) {
        return cityMapper.threeLinkGetCity(parentCode);
    }

    @Override
    public List<District> threeLinkGetDist(String parentCode) {
        return cityMapper.threeLinkGetDist(parentCode);
    }
}
